\hypertarget{interface_tic_tac_grid}{
\section{TicTacGrid Class Reference}
\label{interface_tic_tac_grid}\index{TicTacGrid@{TicTacGrid}}
}


The \hyperlink{interface_tic_tac_grid}{TicTacGrid} is responsible for drawing the the grid, and peices within the grid.  


{\ttfamily \#import $<$TicTacGrid.h$>$}\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
(void) -\/ \hyperlink{interface_tic_tac_grid_a58d3335017ee8154647bab6dfe54c04b}{drawGrid:withModel:enabled:}
\begin{DoxyCompactList}\small\item\em The main drawing method expected to be called from the tic tac view. This will take responsability for ensuring the lines, players, and any winning strokes are drawn. \item\end{DoxyCompactList}\item 
\hypertarget{interface_tic_tac_grid_a63570f57b630531cca7e8ddf99bd2d6a}{
(void) -\/ \hyperlink{interface_tic_tac_grid_a63570f57b630531cca7e8ddf99bd2d6a}{drawVerticalLines:enabled:}}
\label{interface_tic_tac_grid_a63570f57b630531cca7e8ddf99bd2d6a}

\begin{DoxyCompactList}\small\item\em Internal use. Draws the vertical lines. Use drawGrid. \item\end{DoxyCompactList}\item 
\hypertarget{interface_tic_tac_grid_a9ddca51b2f1589779f1b0b47f422030f}{
(void) -\/ \hyperlink{interface_tic_tac_grid_a9ddca51b2f1589779f1b0b47f422030f}{drawHorizontalLines:enabled:}}
\label{interface_tic_tac_grid_a9ddca51b2f1589779f1b0b47f422030f}

\begin{DoxyCompactList}\small\item\em Internal use. Draws the horizontal lines. Use drawGrid. \item\end{DoxyCompactList}\item 
\hypertarget{interface_tic_tac_grid_a8273f2c535bb2f64c638ef2d8523f99f}{
(void) -\/ \hyperlink{interface_tic_tac_grid_a8273f2c535bb2f64c638ef2d8523f99f}{drawPlayers:withCellWidth:andCellHeight:}}
\label{interface_tic_tac_grid_a8273f2c535bb2f64c638ef2d8523f99f}

\begin{DoxyCompactList}\small\item\em Internal use. Draws the players ( x's and o's). Use drawGrid. \item\end{DoxyCompactList}\item 
\hypertarget{interface_tic_tac_grid_ad634ba56c84db51416f7b44400497ab1}{
(void) -\/ \hyperlink{interface_tic_tac_grid_ad634ba56c84db51416f7b44400497ab1}{drawWinningLines:cellWidth:model:}}
\label{interface_tic_tac_grid_ad634ba56c84db51416f7b44400497ab1}

\begin{DoxyCompactList}\small\item\em Internal use. Draws any winning lines. If multiple wins then multiple draws. Use drawGrid. \item\end{DoxyCompactList}\item 
\hypertarget{interface_tic_tac_grid_ace23078a4e3cab446eafa111eafe8187}{
(void) -\/ \hyperlink{interface_tic_tac_grid_ace23078a4e3cab446eafa111eafe8187}{drawPlayerXAtX:yMin:xMax:yMax:}}
\label{interface_tic_tac_grid_ace23078a4e3cab446eafa111eafe8187}

\begin{DoxyCompactList}\small\item\em Internal use. Draws an x player. Use drawGrid. \item\end{DoxyCompactList}\item 
\hypertarget{interface_tic_tac_grid_a33a7eb12fd9a297fe5428a1003cf8b7f}{
(void) -\/ \hyperlink{interface_tic_tac_grid_a33a7eb12fd9a297fe5428a1003cf8b7f}{drawPlayerOAtX:yMin:width:height:}}
\label{interface_tic_tac_grid_a33a7eb12fd9a297fe5428a1003cf8b7f}

\begin{DoxyCompactList}\small\item\em Internal use. Draws an o player. Use drawGrid. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
The \hyperlink{interface_tic_tac_grid}{TicTacGrid} is responsible for drawing the the grid, and peices within the grid. \hyperlink{interface_tic_tac_grid}{TicTacGrid} is expected to be used within the view. All it does is draw, there is no input or interaction of any kind. 

\subsection{Member Function Documentation}
\hypertarget{interface_tic_tac_grid_a58d3335017ee8154647bab6dfe54c04b}{
\index{TicTacGrid@{TicTacGrid}!drawGrid:withModel:enabled:@{drawGrid:withModel:enabled:}}
\index{drawGrid:withModel:enabled:@{drawGrid:withModel:enabled:}!TicTacGrid@{TicTacGrid}}
\subsubsection[{drawGrid:withModel:enabled:}]{\setlength{\rightskip}{0pt plus 5cm}-\/ (void) drawGrid: (NSRect) {\em rect}\/ withModel: ({\bf TicTacModel} $\ast$) {\em model}\/ enabled: (bool) {\em isEnabled}}}
\label{interface_tic_tac_grid_a58d3335017ee8154647bab6dfe54c04b}


The main drawing method expected to be called from the tic tac view. This will take responsability for ensuring the lines, players, and any winning strokes are drawn. 
\begin{DoxyParams}{Parameters}
\item[{\em rect}]The rectangle to draw within \item[{\em model}]The data model to reference while drawing \item[{\em isEnabled}]A flag to indicate whether the grid is enabled. \end{DoxyParams}


The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
TicTacGrid.h\item 
TicTacGrid.m\end{DoxyCompactItemize}
